package com.dotnet.modules.field.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dotnet.modules.field.entity.ProductField;
import com.dotnet.modules.field.mapper.ProductFieldMapper;

/**
 * 
 * 描述：
 * 创建人： 魏泽超
 * 创建时间: 2016-6-7 上午11:04:35
 * @version
 */
@Service
public class ProductFieldServiceImpl implements ProductFieldService{
	
	@Autowired
	private ProductFieldMapper productFieldMapper;

	@Override
	public ProductField queryOne(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.selectOne(record);
	}

	@Override
	public List<ProductField> queryAll(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.select(record);
	}

	@Override
	public int queryCount(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.selectCount(record);
	}

	@Override
	public ProductField queryByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return productFieldMapper.selectByPrimaryKey(key);
	}

	@Override
	public int add(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.insert(record);
	}

	@Override
	public int addSelective(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.insertSelective(record);
	}

	@Override
	public int delete(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.delete(record);
	}

	@Override
	public int deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return productFieldMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKey(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductField record) {
		// TODO Auto-generated method stub
		return productFieldMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int queryCountByExample(ProductField example) {
		// TODO Auto-generated method stub
		return productFieldMapper.selectCountByExample(example);
	}

	@Override
	public List<ProductField> queryByExample(ProductField example) {
		// TODO Auto-generated method stub
		return productFieldMapper.selectByExample(example);
	}
}
